﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Ue.CQRS.Samples.Domain.EventArgs
{
    /// <summary>
    /// 事件参数应该是只读对象
    /// </summary>
    [Serializable]
    public class BookCreateEventArgs
    {
        public BookCreateEventArgs(Guid id,string name,string description,string isbn,string author,int paper,int total)
        {
            this.Id = id;
            this.Name = name;
            this.Description = description;
            this.ISBN = isbn;
            this.Author = author;
            this.Pager = paper;
            this.Total = total;
        }

        public Guid Id { get; private set; }

        public string Name { get; private set; }

        public string Description { get; private set; }

        public string ISBN { get; private set; }

        public string Author { get; private set; }

        public int Pager { get;private set; }

        public int Total { get; private set; }
    }
}